﻿capital = 540
OOB = "PAF_AFR"
set_research_slots = 2
starting_train_buffer = 1.5

set_technology = {
	basic_train = 1
	###General ###
	infantry_weapons = 1
	infantry_weapons1 = 1
	gw_artillery = 1
	tech_support = 1
	tech_engineers = 1
}

MLW = { give_military_access = PAF } #representing MLW port in Mozambique
BSC = { give_military_access = PAF } #representing BSAC port in Mozambique

if = {
	limit = { has_dlc = "By Blood Alone" }
		set_air_oob = "POR_air_bba"

		set_technology = {
			aa_lmg = 1
			early_bombs = 1
			engines_1 = 1
			iw_small_airframe = 1
			iw_medium_airframe = 1
			iw_large_airframe = 1
		}
		POR_BBA_air_variants = yes
	else = {
		set_air_oob = "POR_air_legacy"
		set_technology = {
			early_fighter = 1
			early_bomber = 1
			CAS1 = 1
		}
	}
}

###Navy - MtG ###
if = {
	limit = {
		has_dlc = "Man the Guns"
	}
	set_technology = {
		early_ship_hull_light = 1
		basic_ship_hull_light = 1
		early_ship_hull_cruiser = 1
		basic_ship_hull_cruiser = 1
		early_ship_hull_heavy = 1
		panzerschiffe = 1
		early_ship_hull_submarine = 1
		basic_ship_hull_submarine = 1
		
		
		basic_naval_mines = 1

		##Modules##
		basic_battery = 1
		basic_light_battery = 1
		basic_medium_battery = 1
		basic_heavy_battery = 1
		basic_depth_charges = 1
		basic_torpedo = 1
		improved_ship_torpedo_launcher = 1
		basic_cruiser_armor_scheme = 1

		###Transport ###
		mtg_transport = 1
	}
}

###Navy - Non MtG ###
if = {
	limit = {
		NOT = {
			has_dlc = "Man the Guns"
		}
	}
	set_technology = {
		early_destroyer = 1
		basic_destroyer = 1
		early_light_cruiser = 1
		basic_light_cruiser = 1
		early_submarine = 1
		basic_submarine = 1
		early_heavy_cruiser = 1
		basic_heavy_cruiser = 1
		early_battleship = 1

		###Transport ###
		transport = 1
	}
}

set_stability = 0.42
set_war_support = 0.13
add_political_power = -34
set_convoys = 42

if = {
	limit = {
		is_ai = no
	}
	set_rule = {
		can_send_volunteers = yes
		can_be_spymaster = yes
		can_decline_call_to_war = yes
		can_not_declare_war = no
		can_puppet = yes
		units_deployed_to_overlord = yes
	}
}

POR = {
	set_autonomy = {
		target = PAF
		autonomous_state = kr_colonial_government
	}
}

POR = { 
add_opinion_modifier = { 
target = PAF modifier = colonial_master 
} 
}

#Delete colonial guard units
POR = {
delete_unit_template_and_units = {
  division_template = "Batalhão de Guarnição"
  disband = yes #will refund equipment and manpower
	}
}


country_event = { id = portoafrica.1 days = 1 } #Intro
POR = { country_event = { id = portoafrica.1 days = 7 } }

country_event = { id = portoafricaflavor.2 days = 9 } #Luanda Carnival
POR = { country_event = { id = portoafricaflavor.2 days = 15 } }

country_event = { id = portoafricaflavor.1 days = 17 } #The Final Victory in Angola
POR = { country_event = { id = portoafricaflavor.1 days = 18 } }

country_event = { id = por.300 days = 21 } #Colonial Exhibition of 1936 

country_event = { id = portoafricaflavor.23 days = 27 } #Alfeite Arsenal Completed
POR = { country_event = { id = portoafricaflavor.23 days = 27 } }

country_event = { id = portoafricaflavor.53 days = 34 } #Cabral Criticises Guinean Pacifications
POR = { country_event = { id = portoafricaflavor.53 days = 34 } }

country_event = { id = portoafrica.31 days = 48 } #Black Monday
POR = { country_event = { id = portoafrica.31 days = 48 } }

country_event = { id = portoafrica.11 days = 55 } #Collapse of the Mozambique Company
POR = { country_event = { id = portoafrica.11 days = 55 } }

country_event = { id = portoafricaflavor.11 days = 70 } #De Beers pauses mining
POR = { country_event = { id = portoafricaflavor.11 days = 70 } }
ZIM = { country_event = { id = portoafricaflavor.11 days = 70 } }
BSC = { country_event = { id = portoafricaflavor.11 days = 70 } }
SAF = { country_event = { id = portoafricaflavor.11 days = 70 } }
ZAM = { country_event = { id = portoafricaflavor.11 days = 70 } }

country_event = { id = portoafricaflavor.21 days = 99 } #Raid on Kuamba
POR = { country_event = { id = portoafricaflavor.21 days = 99 } }

country_event = { id = portoafricaflavor.32 days = 112 } #Cine-Teatro Nacional Completed
POR = { country_event = { id = portoafricaflavor.32 days = 112 } }

country_event = { id = portoafricaflavor.3 days = 128 } #Febre Amarela Outbreak in Lunda Norte
HUN = { country_event = { id = portoafricaflavor.3 days = 128 } }
AUS = { country_event = { id = portoafricaflavor.3 days = 128 } }
POR = { country_event = { id = portoafricaflavor.3 days = 128 } }

country_event = { id = portoafricaflavor.36 days = 142 } #Macao event
POR = { country_event = { id = portoafricaflavor.36 days = 142 } }
LEP = { country_event = { id = portoafricaflavor.36 days = 142 } }
QIE = { country_event = { id = portoafricaflavor.36 days = 142 } }
GXC = { country_event = { id = portoafricaflavor.36 days = 142 } }
PRC = { country_event = { id = portoafricaflavor.36 days = 142 } }
CHI = { country_event = { id = portoafricaflavor.36 days = 142 } }
YUN = { country_event = { id = portoafricaflavor.36 days = 142 } }
FNG = { country_event = { id = portoafricaflavor.36 days = 142 } }
SHX = { country_event = { id = portoafricaflavor.36 days = 142 } }
HUN = { country_event = { id = portoafricaflavor.36 days = 142 } }
SZC = { country_event = { id = portoafricaflavor.36 days = 142 } }
XSM = { country_event = { id = portoafricaflavor.36 days = 142 } }

country_event = { id = portoafricaflavor.22 days = 153 } #Settlements
POR = { country_event = { id = portoafricaflavor.22 days = 153 } }

country_event = { id = portoafricaflavor.14 days = 173 } #Monteiro's speech
POR = { country_event = { id = portoafricaflavor.14 days = 173 } }

country_event = { id = portoafricaflavor.38 days = 181 } #Migration into the Chinese Concessions
POR = { country_event = { id = portoafricaflavor.38 days = 181 } }
GER = { country_event = { id = portoafricaflavor.38 days = 181 } }
GEA = { country_event = { id = portoafricaflavor.38 days = 181 } }
LEC = { country_event = { id = portoafricaflavor.38 days = 181 } }
JAP = { country_event = { id = portoafricaflavor.38 days = 181 } }
USA = { country_event = { id = portoafricaflavor.38 days = 181 } }
CAN = { country_event = { id = portoafricaflavor.38 days = 181 } }
AST = { country_event = { id = portoafricaflavor.38 days = 181 } }
BEL = { country_event = { id = portoafricaflavor.38 days = 181 } }
AUS = { country_event = { id = portoafricaflavor.38 days = 181 } }
RUS = { country_event = { id = portoafricaflavor.38 days = 181 } }

country_event = { id = portoafricaflavor.46 days = 190 } #East Timor
POR = { country_event = { id = portoafricaflavor.46 days = 190 } }
DEI = { country_event = { id = portoafricaflavor.46 days = 190 } }
HOL = { country_event = { id = portoafricaflavor.46 days = 190 } }
GEA = { country_event = { id = portoafricaflavor.46 days = 190 } }
AST = { country_event = { id = portoafricaflavor.46 days = 190 } }

country_event = { id = portoafricaflavor.4 days = 199 } #Feast of 15 August
POR = { country_event = { id = portoafricaflavor.4 days = 199 } }

country_event = { id = portoafrica.13 days = 223 } #O Brado Africano Shuts Down
POR = { country_event = { id = portoafrica.13 days = 223 } }

country_event = { id = portoafricaflavor.13 days = 240 } #WNLA Scandals
POR = { country_event = { id = portoafricaflavor.13 days = 240 } }
SAF = { country_event = { id = portoafricaflavor.13 days = 240 } }
ZIM = { country_event = { id = portoafricaflavor.13 days = 240 } }
ZAM = { country_event = { id = portoafricaflavor.13 days = 240 } }
BSC = { country_event = { id = portoafricaflavor.13 days = 240 } }
MAF = { country_event = { id = portoafricaflavor.13 days = 240 } }

country_event = { id = portoafricaflavor.48 days = 249 } #50th Anniversary of the Battle of Fancá
POR = { country_event = { id = portoafricaflavor.48 days = 249 } }

country_event = { id = portoafricaflavor.42 days = 267 } #The Cape Verde Reforms
POR = { country_event = { id = portoafricaflavor.42 days = 267 } }

country_event = { id = portoafricaflavor.5 days = 280 } #Tensions in Cabinda
POR = { country_event = { id = portoafricaflavor.5 days = 280 } }

country_event = { id = portoafrica.16 days = 307 } #Persecution of the Baneans
POR = { country_event = { id = portoafrica.16 days = 307 } }

country_event = { id = portoafricaflavor.6 days = 329 } #Rum debate
POR = { country_event = { id = portoafricaflavor.6 days = 329 } }

country_event = { id = portoafrica.14 days = 363 } #Missão Antropológica de Moçambique Established
POR = { country_event = { id = portoafrica.14 days = 363 } }

country_event = { id = portoafricaflavor.20 days = 388 } #Swaziland Dispute
POR = { country_event = { id = portoafricaflavor.20 days = 388 } }
CAN = { country_event = { id = portoafricaflavor.20 days = 388 } }
SAF = { country_event = { id = portoafricaflavor.20 days = 388 } }
ZIM = { country_event = { id = portoafricaflavor.20 days = 388 } }

country_event = { id = portoafricaflavor.45 days = 401 } #The Peoples of East Timor
POR = { country_event = { id = portoafricaflavor.45 days = 401 } }
DEI = { country_event = { id = portoafricaflavor.45 days = 401 } }
HOL = { country_event = { id = portoafricaflavor.45 days = 401 } }
GEA = { country_event = { id = portoafricaflavor.45 days = 401 } }
AST = { country_event = { id = portoafricaflavor.45 days = 401 } }

country_event = { id = portoafricaflavor.7 days = 420 } #Moral inspectorate
POR = { country_event = { id = portoafricaflavor.7 days = 420 } }

CAN = { country_event = { id = portoafricaflavor.40 days = 441 } } # The Mui Tsai Scandal
AST = { country_event = { id = portoafricaflavor.40 days = 441 } }
LEC = { country_event = { id = portoafricaflavor.40 days = 441 } }
GER = { country_event = { id = portoafricaflavor.40 days = 441 } }
GEA = { country_event = { id = portoafricaflavor.40 days = 441 } }

country_event = { id = portoafricaflavor.55 days = 454 } #Sobhuza and the Struggle for Mbabane
POR = { country_event = { id = portoafricaflavor.55 days = 454 } }
SAF = { country_event = { id = portoafricaflavor.55 days = 454 } }
SFR = { country_event = { id = portoafricaflavor.55 days = 454 } }

country_event = { id = portoafrica.12 days = 471 } #Companhia do Boror Sees Profits
POR = { country_event = { id = portoafrica.12 days = 471 } }

country_event = { id = portoafrica.15 days = 494 } #Associação dos Naturais da Colónia de Moçambique
POR = { country_event = { id = portoafrica.15 days = 494 } }

country_event = { id = portoafricaflavor.8 days = 522 } #Angolan Boers
POR = { country_event = { id = portoafricaflavor.8 days = 522 } }

country_event = { id = portoafricaflavor.9 days = 555 } #Benguela Railway works
POR = { country_event = { id = portoafricaflavor.9 days = 555 } }
MAF = { country_event = { id = portoafricaflavor.9 days = 555 } }
COG = { country_event = { id = portoafricaflavor.9 days = 555 } }
KTG = { country_event = { id = portoafricaflavor.9 days = 555 } }
BSC = { country_event = { id = portoafricaflavor.9 days = 555 } }
ZAM = { country_event = { id = portoafricaflavor.9 days = 555 } }

country_event = { id = portoafricaflavor.54 days = 572 } #The Swazi Kingdom
POR = { country_event = { id = portoafricaflavor.54 days = 572 } }
SAF = { country_event = { id = portoafricaflavor.54 days = 572 } }
SFR = { country_event = { id = portoafricaflavor.54 days = 572 } }

country_event = { id = portoafricaflavor.31 days = 586 } #Cine-Teatro Nacional Completed
POR = { country_event = { id = portoafricaflavor.31 days = 586 } }

CAN = { country_event = { id = portoafricaflavor.41 days = 601 } } # The Parsee Association
AST = { country_event = { id = portoafricaflavor.41 days = 601 } }
LEC = { country_event = { id = portoafricaflavor.41 days = 601 } }
GER = { country_event = { id = portoafricaflavor.41 days = 601 } }
GEA = { country_event = { id = portoafricaflavor.41 days = 601 } }

country_event = { id = portoafricaflavor.10 days = 623 } #Zion in Angola
POR = { country_event = { id = portoafricaflavor.10 days = 623 } }
PAL = { country_event = { id = portoafricaflavor.10 days = 623 } }
TUR = { country_event = { id = portoafricaflavor.10 days = 623 } }

CAN = { country_event = { id = portoafricaflavor.39 days = 656 } } # The End of Legal Repugnancy in Hong Kong
LEC = { country_event = { id = portoafricaflavor.39 days = 656 } }
GER = { country_event = { id = portoafricaflavor.39 days = 656 } }
GEA = { country_event = { id = portoafricaflavor.39 days = 656 } }
PAF = { country_event = { id = portoafricaflavor.39 days = 656 } }
JAP = { country_event = { id = portoafricaflavor.39 days = 656 } }
FNG = { country_event = { id = portoafricaflavor.39 days = 656 } }
QIE = { country_event = { id = portoafricaflavor.39 days = 656 } }
GXC = { country_event = { id = portoafricaflavor.39 days = 656 } }

country_event = { id = portoafricaflavor.12 days = 698 } #Government interference
POR = { country_event = { id = portoafricaflavor.12 days = 698 } }
SWI = { country_event = { id = portoafricaflavor.12 days = 698 } }
PAP = { country_event = { id = portoafricaflavor.12 days = 698 } }

country_event = { id = portoafricaflavor.24 days = 729 } #The Direcção de Exploração dos Transportes Aéreos
POR = { country_event = { id = portoafricaflavor.24 days = 729 } }

country_event = { id = portoafricaflavor.15 days = 777 } #Dundo Fire
POR = { country_event = { id = portoafricaflavor.15 days = 777 } }
GER = { country_event = { id = portoafricaflavor.15 days = 777 } }
MAF = { country_event = { id = portoafricaflavor.15 days = 777 } }

country_event = { id = portoafricaflavor.26 days = 804 } #The Bandas Desenhadas
POR = { country_event = { id = portoafricaflavor.26 days = 804 } }

country_event = { id = portoafricaflavor.49 days = 834 } #Fortaleza de São José Declared a National Monument
POR = { country_event = { id = portoafricaflavor.49 days = 834 } }


country_event = { id = portoafricaflavor.18 days = 856 } #Goa Congress
POR = { country_event = { id = portoafricaflavor.18 days = 856 } }

country_event = { id = portoafricaflavor.56 days = 878 } #The Contest for Kosi Bay
POR = { country_event = { id = portoafricaflavor.56 days = 878 } }
SAF = { country_event = { id = portoafricaflavor.56 days = 878 } }
SFR = { country_event = { id = portoafricaflavor.56 days = 878 } }

country_event = { id = portoafricaflavor.19 days = 901 } #Dili shooting
POR = { country_event = { id = portoafricaflavor.19 days = 901 } }

country_event = { id = portoafricaflavor.43 days = 933 } #The Badius of Santiago
POR = { country_event = { id = portoafricaflavor.43 days = 933 } }

country_event = { id = portoafricaflavor.16 days = 960 } #On the Indigenas
POR = { country_event = { id = portoafricaflavor.16 days = 960 } }

country_event = { id = portoafricaflavor.57 days = 1001 } #Border Tensions at Piet Retief
POR = { country_event = { id = portoafricaflavor.57 days = 1001 } }
SAF = { country_event = { id = portoafricaflavor.57 days = 1001 } }
SFR = { country_event = { id = portoafricaflavor.57 days = 1001 } }

country_event = { id = portoafricaflavor.27 days = 1033 } #Legacy of the Gwaza Muthini
POR = { country_event = { id = portoafricaflavor.27 days = 1033 } }

country_event = { id = portoafricaflavor.37 days = 1057 } #Destruction of the Mesquita Monument
POR = { country_event = { id = portoafricaflavor.37 days = 1057 } }
LEP = { country_event = { id = portoafricaflavor.37 days = 1057 } }
QIE = { country_event = { id = portoafricaflavor.37 days = 1057 } }
GXC = { country_event = { id = portoafricaflavor.37 days = 1057 } }
PRC = { country_event = { id = portoafricaflavor.37 days = 1057 } }
CHI = { country_event = { id = portoafricaflavor.37 days = 1057 } }
YUN = { country_event = { id = portoafricaflavor.37 days = 1057 } }
FNG = { country_event = { id = portoafricaflavor.37 days = 1057 } }
SHX = { country_event = { id = portoafricaflavor.37 days = 1057 } }
HUN = { country_event = { id = portoafricaflavor.37 days = 1057 } }
SZC = { country_event = { id = portoafricaflavor.37 days = 1057 } }
XSM = { country_event = { id = portoafricaflavor.37 days = 1057 } }

country_event = { id = portoafricaflavor.28 days = 1099 } #Bukhontxana and the Randy Men of the Rand
POR = { country_event = { id = portoafricaflavor.28 days = 1099 } }
SAF = { country_event = { id = portoafricaflavor.28 days = 1099 } }
SFR = { country_event = { id = portoafricaflavor.28 days = 1099 } }
ZIM = { country_event = { id = portoafricaflavor.28 days = 1099 } }
MLW = { country_event = { id = portoafricaflavor.28 days = 1099 } }
ZAM = { country_event = { id = portoafricaflavor.28 days = 1099 } }
NMB = { country_event = { id = portoafricaflavor.28 days = 1099 } }
MAF = { country_event = { id = portoafricaflavor.28 days = 1099 } }

country_event = { id = portoafricaflavor.44 days = 1137 } #The Founding of Claridade
POR = { country_event = { id = portoafricaflavor.44 days = 1137 } }

country_event = { id = portoafricaflavor.29 days = 1188 } #Sufi Protests in Northern Mozambique
POR = { country_event = { id = portoafricaflavor.29 days = 1188 } }

country_event = { id = portoafricaflavor.30 days = 1256 } #The Grupo Madal Scandal
POR = { country_event = { id = portoafricaflavor.30 days = 1256 } }
NOR = { country_event = { id = portoafricaflavor.30 days = 1256 } }

country_event = { id = portoafricaflavor.47 days = 1293 } #Fort São João Baptista de Ajudá
POR = { country_event = { id = portoafricaflavor.47 days = 1293 } }
MAF = { country_event = { id = portoafricaflavor.47 days = 1293 } }
CIV = { country_event = { id = portoafricaflavor.47 days = 1293 } }
DAH = { country_event = { id = portoafricaflavor.47 days = 1293 } }
TOG = { country_event = { id = portoafricaflavor.47 days = 1293 } }

add_ideas = {
	Generic_Colonial_Nation_lesser
	PAF_the_overseas_provinces
	PAF_bandits_and_strikes
	PAF_the_swaziland_dispute
}

add_ideas = {
	POR_Francisco_Rolao_Preto_hog_npo
	POR_Afonso_Lopes_Vieira_for_npo
	POR_Alberto_Monsaraz_eco_pau
	POR_Jose_Hipolito_Vaz_Raposo_sec_pau
}

set_politics = {
	ruling_party = paternal_autocrat
	last_election = "1888.6.15"
	election_frequency = 48
	elections_allowed = no
}

set_popularities = {
  totalist = 0
  radical_socialist = 0
  syndicalist = 0
  social_democrat = 2
  social_liberal = 6
  market_liberal = 6
  social_conservative = 12
  authoritarian_democrat = 15
  paternal_autocrat = 47
  national_populist = 12
}

create_country_leader = {
	name = "José Augusto da Costa Almeida"
	picture = "gfx/leaders/POR/Portrait_POR_Jose_Augusto_da_Costa_Almeida.png"
	expire = "1.1.1"
	ideology = colonial_govt_subtype
}

create_country_leader = {
	name = "Henrique de Paiva Couceiro"
	picture = "gfx/leaders/POR/Portrait_POR_Henrique_Paiva_Couceiro.png"
	expire = "1.1.1"
	ideology = autocratic_colonial_govt_subtype
}

create_country_leader = {
	name = "Henrique de Paiva Couceiro"
	picture = "gfx/leaders/POR/Portrait_POR_Henrique_Paiva_Couceiro.png"
	expire = "1.1.1"
	ideology = natpop_colonial_govt_subtype
}

create_corps_commander = {
	name = "António Vitorino da França Borges"
	portrait_path = "gfx/leaders/POR/Portrait_POR_Franca_Borges.png"
	traits = {
	infantry_officer
	career_officer
	jungle_rat
	}
	skill = 3
	attack_skill = 2
	defense_skill = 3
	planning_skill = 2
	logistics_skill = 1
}

create_corps_commander = {
	name = "Artur Carlos de Barros Basto"
	portrait_path = "gfx/leaders/POR/Portrait_POR_Barros_Basto.png"
	traits = {
	trait_cautious
	politically_connected
	}
	skill = 2
	attack_skill = 2
	defense_skill = 2
	planning_skill = 1
	logistics_skill = 2
}


create_corps_commander = {
	name = "José Tristão de Bettencourt"
	portrait_path = "gfx/leaders/POR/Portrait_POR_Jose_Tristao_de_Bettencourt.png"
		traits = {
				politically_connected
				media_personality
				jungle_rat
			}
			skill = 3
			attack_skill = 2
			defense_skill = 2
			planning_skill = 1
			logistics_skill = 1
}
create_navy_leader = {
	name = "Manuel Sarmento Rodrigues"
	portrait_path = "gfx/leaders/POR/Portrait_POR_Manuel_Rodrigues.png"
	traits = { }
	skill = 1
	attack_skill = 1
	defense_skill = 1
	maneuvering_skill = 1
	coordination_skill = 1
}

POR_start_naval_variant = yes
